package com.kaohe.domain;

public class Product {

	private int pid;//主键
	private String pname;//商品名称
	private String color;//商品颜色
	private double price;//商品价格
	private String description;//商品描述
	private String pic;//商品图片
	private int state;//0 正常,1热门产品，2为你推荐，3，新品 4，小米明星单品
	private String version;//商品型号
	private String product_date;//生产日期
	private int cid;//属于哪个分类
	private Category category;
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getPic() {
		return pic;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getProduct_date() {
		return product_date;
	}
	public void setProduct_date(String product_date) {
		this.product_date = product_date;
	}
	public int getCid() {
		return cid;
	}
	public void setCid(int cid) {
		this.cid = cid;
	}
	public Category getCategory() {
		return category;
	}
	public void setCategory(Category category) {
		this.category = category;
	}
	@Override
	public String toString() {
		return "Product [pid=" + pid + ", pname=" + pname + ", color=" + color + ", price=" + price + ", description="
				+ description + ", pic=" + pic + ", state=" + state + ", version=" + version + ", product_date="
				+ product_date + ", cid=" + cid + ", category=" + category + "]";
	}
	
	
	
}
